# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class PmcprojectItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass

# POST请求方法中的表单数据
class FormDataItem(scrapy.Item):
    term = scrapy.Field() # 搜索关键词
    lastQueryKey = scrapy.Field() # 会话参数
    currentPage = scrapy.Field() # 当前页数


# 文献信息(简略数据)
class TextInfoItem(scrapy.Item):
    PMCID = scrapy.Field()
    state = scrapy.Field()
    title = scrapy.Field()
    href = scrapy.Field()
    author = scrapy.Field()
    details = scrapy.Field()


# 文献详细信息
class TextItem(scrapy.Item):
    PMCID = scrapy.Field() # 段落所在文章ID
    secID = scrapy.Field() # 段落id
    state = scrapy.Field() # 段落状态
    secTitle = scrapy.Field() # 段落名
    content = scrapy.Field() # 段落内容